package com.xbongbong.pro.detailtab.dto.team;

import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.DecimalMax;
import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author: 汪腾伟
 * @date: Created in 2022/1/13 19:11
 * @description： 团队负责人新增实体
 */
@Setter
@Getter
@ToString
public class TeamDetailMainAddDTO extends BaseDTO {

    private static final long serialVersionUID = -3871413654156021138L;

    /**
     * 数据id
     */
    @NotNull(message = "{dto.msg.teamDetail.dataId.NotNul}")
    private Long dataId;
    /**
     * saas标记
     */
    @NotNull(message = "{dto.msg.teamDetail.saasMark.NotNull}")
    @DecimalMin(value = "1", message = "{dto.msg.teamDetail.saasMark.DecimalMin}")
    @DecimalMax(value = "2", message = "{dto.msg.teamDetail.saasMark.DecimalMax}")
    private Integer saasMark;
    /**
     * 业务类型
     */
    @NotNull(message = "{dto.msg.teamDetail.businessType.NotNull}")
    private Integer businessType;

    /**
     * 业务类型
     */
    @NotNull(message = "{dto.msg.teamDetail.formId.NotNull}")
    private Long formId;

    /**
     * 负责人不能为空
     */
    @NotNull(message = "{dto.msg.teamDetail.ownerUserIds.NotNull}")
    private List<String> ownerUserIds;

    /**
     * 菜单id
     */
    private Long menuId;

    /**
     * 应用id
     */
    private Long appId;



}
